<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="basePath" value="${pageContext.request.contextPath}" />
<html>
<head>
<title>配置类型</title>
<meta http-equiv="content-Type" content="text/html;charset=UTF-8">
<link rel="stylesheet" href="${basePath}/tabs/tab2.css" type="text/css">
<script src="${basePath}/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">


function changeCheck(obj){
	var hao = obj.id+"_c";
	if(obj.checked == true)
		document.getElementById(hao).value = 1;
	else
		document.getElementById(hao).value = 0;
    //alert(document.getElementById(hao).value);

}
</script>
</head>
<body>
<table>
    <tr align="left">
   		<td colspan="4">
    		  <IMG src="${basePath}/tabs/images/home.gif"> 
         		 您的位置：项目管理&gt;&gt;配置管理&gt;&gt;配置类型</td>
    </tr>
</table>
    <br/>
    <form action="configType!doUpdate.action" method="post" id="configTypeForm">
    <input type="hidden" name="typeId" value="${configType.typeId }"/>
    <table border="1" id="name">
    <tr>
    <td width="20%">配置类型名称</td><td width="30%"><input type="text" name="typeName" height="100%" value="${configType.typeName}"> </td>
    <td width="20%">项目名称</td><td width="30%"><input type="text" name="projectName" height="100%" value="控制系统"></td>
    </tr>
     <tr>
    	<td >审核过程</td><td  colspan="3" align="left">
    	<c:choose>
			<c:when test="${configType.pm == 1}">
				<input type="checkbox" checked="checked" id="pm" style=" width:auto; height:auto" onchange="changeCheck(this)" />需要PM审核
			</c:when>
			<c:otherwise>
				<input type="checkbox" id="pm" style=" width:auto; height:auto"  onchange="changeCheck(this)"/>需要PM审核
			</c:otherwise>
    	</c:choose>
 &nbsp;  &nbsp; &nbsp;  &nbsp;
 <c:choose>
  <c:when test="${configType.pl == 1}">
    <input type="checkbox" checked="checked" id="pl" style=" width:auto; height:auto" onchange="changeCheck(this)" />需要PL审核 
  </c:when>
  <c:otherwise>
   <input type="checkbox"  id="pl" style=" width:auto; height:auto"  onchange="changeCheck(this)"/>需要PL审核
  </c:otherwise>
  
 </c:choose>
   &nbsp; &nbsp;  &nbsp;  &nbsp;
  <c:choose>
  <c:when test="${configType.sl == 1}">
   <input type="checkbox" checked="checked" id="sl" style=" width:auto; height:auto" onchange="changeCheck(this)"/> 需要SL审核
  </c:when>
  <c:otherwise>
  <input type="checkbox"   id="sl" style=" width:auto; height:auto" onchange="changeCheck(this)"/> 需要SL审核
  </c:otherwise>
  </c:choose> 
   
   <input type="hidden" value="${configType.pm }" name="pm" id="pm_c"/>
   <input type="hidden" value="${configType.pl }" name="pl" id="pl_c"/>
   <input type="hidden" value="${configType.sl }" name="sl" id="sl_c"/>"
  </tr>
    
     <tr>
    	<td colspan="4" align="left">概述：</td>
    </tr>
     <tr align="left">
   		<td colspan="4"><textarea name="summarize"  rows="4" style="width:100%" >该配置项很重要，要好好写</textarea></td>
    </tr>
     <tr >
   	   <td colspan="4"><input type="submit" value="保存" class="type"   style="width:90px" /></td>
    </tr>
    </table>
    </form>
</body>
</html>
